import 'package:dk_flutter_base/dk_core.dart';

@ARouteRoot()
class RouterBoot {}

///https://github.com/alibaba-flutter/annotation_route
//1.注意: 你的页面应该实现指定的构造器，一个接受唯一参数的构造器，然后使用@ARoute 注解你的页面类
//例：@ARoute(url: 'myapp://pagea')
//class A {
// A(MyRouteOption option): super();
//}
//2.使用 @ARouteRoot 注解 你自己的 router 类 例：
//
//@ARouteRoot()
//class MyRouter {}
//3.在你的工作目录下运行 build_annotation_route.sh 脚本，或者运行如下命令:
//flutter packages pub run build_runner build --delete-conflicting-outputs
//建议在执行 build 命令前，先执行如下命令:
//flutter packages pub run build_runner clean
class WidgetRouteBoot {
  static const String PAGE_SCHEME = "dkflutter://";
  static const String PAGE_HOST = "base";
  static const String PAGE_HOST_APP = "app";
  static const WIDGET_SCHEME = "dkwidget://";
  static const String WIDGET_HOST = PAGE_HOST_APP;
  static const PORTAL_PREFIX = "/portal";
  static const SALE_CHECK_PREFIX = "/check";
  static const SALE_IN_PREFIX = "/sale";
  static const SALE_OUT_PREFIX = "/oh";
  static const COMMON_PREFIX = "/common";
  static const PAGE_NOT_FIND = PAGE_SCHEME + PAGE_HOST + "/flutter/notfind";
}
